<?php 
	session_start();
	$var1= $_SESSION["registrado"];
	$var2= $_SESSION["administrador"];
	if ($var1 == null): {
		echo ("User not registered");
	} else : {
?>

<!doctype html>
<html xmlns:fb="http://www.facebook.com/2008/fbml">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">

<link href="css/bootstrap.css" rel="stylesheet" media="screen">
<link href="css/bootstrap-responsive.css" rel="stylesheet"	media="screen">

<title>My project manager</title>

</head>

<body>

	<script type="text/javascript"
		src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
	<script src="js/bootstrap.min.js"></script>
	<script src="js/bootstrap.js"></script>


	<div class="navbar navbar-inverse navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container-fluid">
				<button type="button" class="btn btn-navbar" data-toggle="collapse"
					data-target=".nav-collapse">
					<span class="icon-bar"></span> <span class="icon-bar"></span> <span
						class="icon-bar"></span>
				</button>
				<?php if ($var2 == 1) {?>
					<a class="brand"href="http://localhost/bases--grupo10/homeAdmin.php?">My project manager</a>
				<?php } else { ?>
					<a class="brand"href="http://localhost/bases--grupo10/homeNoAdmin.php?">My project manager</a>
				<?php }?>
				<div class="nav-collapse collapse">
					<p class="navbar-text pull-right">
					
						<a href="http://localhost/bases--grupo10/logout.php?" class="navbar-link">Log out</a>
					</p>
					<ul class="nav">
						<?php if ($var2 == 1) {?>
							<li class="active"><a href="http://localhost/bases--grupo10/homeAdmin.php?">Home</a></li>
						<?php } else { ?>
							<li class="active"><a href="http://localhost/bases--grupo10/homeNoAdmin.php?">Home</a></li>
						<?php }?>	
						<li><a href="http://localhost/bases--grupo10/about.php?">About</a></li>
						<li><a href="http://localhost/bases--grupo10/contact.php?">Contact</a></li>
					</ul>
				</div>
			</div>
		</div>
	</div>
	
	<img src="http://pc.fdi.ucm.es/cupcam/images/fdi.gif" style="background-repeat:no-repeat;background-position:center;position:absolute;top:125px;left:150px;font-family: Arial;border: 0 none;">
	
	<img src="http://pc.fdi.ucm.es/cupcam/images/Facultad.jpg" style="background-repeat:no-repeat;background-position:center;position:absolute;top:225px;left:150px;font-family: Arial;border:1;">

 	<h1 style=font-weight:bold;position:absolute;top:150px;left:525px;font-family: Arial;"><font size="5"><P ALIGN=center>FACULTAD DE INFORM&AacuteTICA<br/>UNIVERSIDAD COMPLUTENSE DE MADRID<br/>C/ Profesor Jose Garcia Santesmases, s/n. 28040 Madrid (Spain)<br/>Telf:+34 913947502 - FAX:+34 913947510<br/><br/>BASES DE DATOS Y SISTEMAS DE INFORMACION</P></font></h1>
	
</body>
</html>

<?php }endif;?>